<template>
  <div class="reitem">
    <image
      class="reitem-img"
      :src="item.thumb"
      @click="push('root:app/goods/goods.js',{id:item.id})"
    />
    <div class="reitem-info">
      <div class="secondPrice">
        <!-- <text class="symbol"></text> -->
        <text class="money">U$ {{item.price}}</text>
      </div>
      <text class="leftInfo" @click="showOption(item.id)">Buy</text>
    </div>
    <div class="reitem-box">
      <text class="reitem-tit">{{item.title}}</text>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      default: {}
    }
  },
  methods: {
    showOption(id) {
      this.$emit("clickOption", id);
    }
  }
};
</script>

<style lang="less">
.reitem {
  height: 436px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  &-img {
    width: 336px;
    height: 336px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  &-box {
    width: 336px;
    padding: 0 20px;
  }
  &-tit {
    font-size: 26px;
    height: 40px;
    line-height: 37px;
    margin-top: 16px;
    color: #1e1e1e;
    text-overflow: ellipsis;
    lines: 1;
    
  }
  &-info {
    margin-top: -65px;
    width: 337px;
    height: 65px;
    flex-direction: row;
    background-color: rgba(236, 65, 77, 1);
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
  }
}

.secondPrice {
  flex-direction: row;
  align-items: center;
}

.leftInfo {
  flex-direction: row;

  width: 131px;
  height: 46px;
  background-color: rgba(255, 229, 215, 1);
  border-radius: 23px;
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(236, 65, 77, 1);
}
.addcar {
  width: 48px;
  height: 48px;
}

.symbol {
  color: red;
  // margin-bottom: 5px;
  font-size: 20px;
  line-height: 20px;
  width: 27px;
}

.money {
  color: #ffffff;
  font-size: 32px;
  line-height: 32px;
  margin-right: 5px;
}
</style>